<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员</title>
<meta content="会员中心" name="keywords">
<meta content="会员中心" name="description">
<base href="{:$smarty.const.PUBLIC_DIR}/">
<link href="member/style/member.css" rel="stylesheet" type="text/css">
</head>
<body style="background-color:#fff">
{:include file="./head.tpl"}

<form>
<div id="login">
  <div id="login_l"><br /><br />
    <div id="login_t"></div>
    <ul>
      <li>用户名：<input name="username" type="text" id="username" size="18" class="input posted" /></li>
      <li>密　码：<input name="password" type="password" id="password" size="18" class="input posted" /></li>
      <li>验证码：<input name="validateCode" type="text" size="6" maxlength="6" class="input posted" />
      <img name="" align="absmiddle" style="cursor:pointer;" id="validateImage" src="{:$smarty.const.BOOT_URL}/common/validateCode" alt="点击重新获取验证码！" onclick="setValidateCode();" /></li>
      <li>　　　
<input name="forward" type="hidden" id="forward" value="http://127.0.0.1:8866/phpcms/member/">
        <input name="dosubmit" type="submit" value="登 录" />　
　    </li>

      </ul>
    <div id="login_b"></div>
  </div>

  <div id="login_r"> <a href="{:$smarty.const.BOOT_URL}/member/register"><img src="member/image/register.jpg" alt="" width="144" height="48" /></a>
  </div>
  <div class="clear"></div>
   <br/>
</div>
</form>
{:include file="./foot.tpl"}
<link href="common/style/ui.all.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="common/js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="common/js/ui.core.js"></script>
<script language="javascript" type="text/javascript" src="common/js/ui.draggable.js"></script>
<script language="javascript" type="text/javascript" src="common/js/ui.dialog.js"></script>
<script language="JavaScript" type="text/javascript" src="member/js/css.js"></script>
<script language="javascript" type="text/javascript" src="common/js/jquery.post.js"></script>
<script language="javascript" type="text/javascript" src="common/js/common.js"></script>
<script language="javascript" type="text/javascript">

$(document).ready(function(){
	$("form").post({
		sendUrl:"{:$smarty.const.BOOT_URL}/member/login/check",
		trueJs:"redirect('{:$smarty.const.BOOT_URL}/member/');",
		falseJs:"setValidateCode();"
	});
});

function setValidateCode()
{
	$("#validateImage").attr('src','{:$smarty.const.BOOT_URL}/common/validateCode/'+Math.ceil(Math.random()*1000));
}

</script>
</body>
</html>